package com.unipay.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unipay.model.order.OrderInfo;
import com.unipay.vo.order.OrderCountQueryVo;
import com.unipay.vo.order.OrderQueryVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Project: yitong_parent
 * @Author: Chenmy
 * @Time: 2023-07-04 21:02:11
 * @Desc: TODO
 */
//@Service
public interface OrderService extends IService<OrderInfo> {

    Long saveOrder(String scheduleId, Long patientId, HttpServletRequest request);

    OrderInfo getOrderById(Long orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> orderInfoPage, OrderQueryVo orderQueryVo);

    Boolean cancelOrder(Long orderId);

    void patientTips();

    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
